import type { AxiosRequestConfig, AxiosResponse } from 'axios'
interface Interceptors {
  request?: (config: AxiosRequestConfig) => AxiosRequestConfig
  response?: (res: AxiosResponse) => AxiosResponse
  requestErr?: (error: any) => any
  responseErr?: (error: any) => any
}

export interface AxiosRequestConfigWithInterceptor extends AxiosRequestConfig {
  interceptors?: Interceptors
}
